const fn = (state = {
  manlist: [],
	womenlist: []
}, action) => {
  const { type, data } = action;
  switch (type) {
	case 'CHANGE_MAN_LIST':
	const womenlist = state.womenlist
	  state = {
			manlist: data,
			womenlist: womenlist
	  }
	  return state;
		case 'CHANGE_WOMEN_LIST':
		const manlist = state.manlist
			state = {
				manlist: manlist,
				womenlist: data
			}
			return state;
	default:
      return state;
  }
}

export default fn;